//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Vml
{
    class ShapeAttributes
    {
        #region IOfficeXmlSerializable Members

        public void ReadXml(ReadContext c)
        {

            ChromaKey = c.GetOptionalString("chromakey");

            Filled = c.GetOptionalBoolean("filled");
            FillColor = c.GetOptionalString("fillcolor");

            Opacity = c.GetOptionalString("opacity");
            Stroked = c.GetOptionalString("stroked");
            StrokeColor = c.GetOptionalString("strokecolor");
            StrokeWeight = c.GetOptionalString("strokeweight");
            InsetPen = c.GetOptionalString("insetpen");
        }

        public void WriteXml(WriteContext c)
        {
            c.SetOptionalString("chromakey", ChromaKey);

            c.SetOptionalBoolean("filled", Filled);
            c.SetOptionalString("fillcolor", FillColor);

            c.SetOptionalString("opacity", Opacity);
            c.SetOptionalString("stroked", Stroked);
            c.SetOptionalString("strokecolor", StrokeColor);
            c.SetOptionalString("strokeweight", StrokeWeight);
            c.SetOptionalString("insetpen", InsetPen);
        }


        #endregion

        private string _chromakey;

        public string ChromaKey
        {
            get { return _chromakey; }
            set { _chromakey = value; }
        }

        private string _insetpen;
        public string InsetPen
        {
            get
            {
                return _insetpen;
            }
            set
            {
                _insetpen = value;
            }
        }
        private string _fillcolor;

        public string FillColor
        {
            get { return _fillcolor; }
            set { _fillcolor = value; }
        }

        private bool? _filled;

        public bool? Filled
        {
            get { return _filled; }
            set { _filled = value; }
        }



        private string _opacity;
        public string Opacity
        {
            get
            {
                return _opacity;
            }
            set
            {
                _opacity = value;
            }
        }
        private string _stroked;
        public string Stroked
        {
            get
            {
                return _stroked;
            }
            set
            {
                _stroked = value;
            }
        }
        private string _strokecolor;
        public string StrokeColor
        {
            get
            {
                return _strokecolor;
            }
            set
            {
                _strokecolor = value;
            }
        }
        private string _strokeweight;
        public string StrokeWeight
        {
            get
            {
                return _strokeweight;
            }
            set
            {
                _strokeweight = value;
            }
        }
        



    }
}
